#pragma once
#include <SFML/Graphics.hpp>
#include "SceneNode.hpp"
class TileMap : public SceneNode
{
public:

    bool load(const std::string& tileset, sf::Vector2u tileSize, const int* tiles, unsigned int width, unsigned int height);

private:

    virtual void drawSelf(sf::RenderTarget& target, sf::RenderStates states) const;
    sf::VertexArray m_vertices;
    sf::Texture m_tileset;
};